﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ad="clr-namespace:AvalonDock"    
    >
    <Style x:Key="{x:Type ad:OverlayWindow}" TargetType="{x:Type ad:OverlayWindow}">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Focusable" Value="False"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ad:OverlayWindow}">
                    <Grid SnapsToDevicePixels="True" Opacity="0.9">
                        <Canvas>
                        <Border x:Name="PART_SelectionBox" Background="{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}" BorderBrush="Gray" BorderThickness="3" Opacity="0.2" Visibility="Hidden"/>
                        </Canvas>
                        <Grid x:Name="panelDrag" >
                            <!--<ad:AlignedImage >-->
                            <ad:ImageEx x:Name="PART_btnDockLeft" VerticalAlignment="Center" HorizontalAlignment="Left" Source="Images\DockLeft.PNG" Stretch="None" />
                            <!--</ad:AlignedImage>-->
                            <!--<ad:AlignedImage >-->
                            <ad:ImageEx x:Name="PART_btnDockRight" VerticalAlignment="Center" HorizontalAlignment="Right" Source="Images\DockRight.PNG" Stretch="None"  />
                            <!--</ad:AlignedImage>-->
                            <!--<ad:AlignedImage >-->
                            <ad:ImageEx x:Name="PART_btnDockBottom" VerticalAlignment="Bottom" HorizontalAlignment="Center" Source="Images\DockBottom.PNG" Stretch="None" />
                            <!--</ad:AlignedImage>-->
                            <!--<ad:AlignedImage >-->
                            <ad:ImageEx x:Name="PART_btnDockTop" VerticalAlignment="Top" HorizontalAlignment="Center" Source="Images\DockTop.PNG" Stretch="None"/>
                            <!--</ad:AlignedImage>-->
                        </Grid>
                        <Canvas>
                            <Grid Name="PART_gridPaneRelativeDockingOptions" Visibility="Collapsed">
                                <Grid Width="88" Height="88" VerticalAlignment="Center" HorizontalAlignment="Center">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition/>
                                        <RowDefinition/>
                                        <RowDefinition/>
                                    </Grid.RowDefinitions>
                                    <!--<ad:AlignedImage  >-->
                                    <Image Grid.ColumnSpan="3" Grid.RowSpan="3" Source="Images\DockPane.png" Stretch="Uniform"/>
                                    <!--</ad:AlignedImage>-->
                                    <Border Name="PART_btnDockPaneTop" Grid.Column="1" Grid.Row="0"/>
                                    <Border Name="PART_btnDockPaneRight" Grid.Column="2" Grid.Row="1"/>
                                    <Border Name="PART_btnDockPaneBottom" Grid.Column="1" Grid.Row="2"/>
                                    <Border Name="PART_btnDockPaneLeft" Grid.Column="0" Grid.Row="1"/>
                                    <Border Name="PART_btnDockPaneInto" Grid.Column="1" Grid.Row="1"/>
                                </Grid>
                            </Grid>
                        </Canvas>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>